/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nxlv2.nomad.businessobjects;

/**
 *
 * @author Nastasia
 */
public class Adresse {

    private int idBase, idAppli;
    private String numVoie, nomVoie, complement, codePostal, ville, pays, mail, tel;
    private boolean defaut;

    public Adresse() {
    }
    
    public Adresse(int idBase, int idAppli, String numVoie, String nomVoie, String complement, String codePostal, String ville, String pays, String mail, String tel, boolean defaut) {
        this.idBase = idBase;
        this.idAppli = idAppli;
        this.numVoie = numVoie;
        this.nomVoie = nomVoie;
        this.complement = complement;
        this.codePostal = codePostal;
        this.ville = ville;
        this.pays = pays;
        this.mail = mail;
        this.tel = tel;
        this.defaut = defaut;
    }

    /**
     * @return the idBase
     */
    public int getIdBase() {
        return idBase;
    }

    /**
     * @param idBase the idBase to set
     */
    public void setIdBase(int idBase) {
        this.idBase = idBase;
    }

    /**
     * @return the idAppli
     */
    public int getIdAppli() {
        return idAppli;
    }

    /**
     * @param idAppli the idAppli to set
     */
    public void setIdAppli(int idAppli) {
        this.idAppli = idAppli;
    }

    /**
     * @return the numVoie
     */
    public String getNumVoie() {
        return numVoie;
    }

    /**
     * @param numVoie the numVoie to set
     */
    public void setNumVoie(String numVoie) {
        this.numVoie = numVoie;
    }

    /**
     * @return the nomVoie
     */
    public String getNomVoie() {
        return nomVoie;
    }

    /**
     * @param nomVoie the nomVoie to set
     */
    public void setNomVoie(String nomVoie) {
        this.nomVoie = nomVoie;
    }

    /**
     * @return the complement
     */
    public String getComplement() {
        return complement;
    }

    /**
     * @param complement the complement to set
     */
    public void setComplement(String complement) {
        this.complement = complement;
    }

    /**
     * @return the codePostal
     */
    public String getCodePostal() {
        return codePostal;
    }

    /**
     * @param codePostal the codePostal to set
     */
    public void setCodePostal(String codePostal) {
        this.codePostal = codePostal;
    }

    /**
     * @return the ville
     */
    public String getVille() {
        return ville;
    }

    /**
     * @param ville the ville to set
     */
    public void setVille(String ville) {
        this.ville = ville;
    }

    /**
     * @return the pays
     */
    public String getPays() {
        return pays;
    }

    /**
     * @param pays the pays to set
     */
    public void setPays(String pays) {
        this.pays = pays;
    }

    /**
     * @return the mail
     */
    public String getMail() {
        return mail;
    }

    /**
     * @param mail the mail to set
     */
    public void setMail(String mail) {
        this.mail = mail;
    }

    /**
     * @return the tel
     */
    public String getTel() {
        return tel;
    }

    /**
     * @param tel the tel to set
     */
    public void setTel(String tel) {
        this.tel = tel;
    }

    /**
     * @return the defaut
     */
    public boolean isDefaut() {
        return defaut;
    }

    /**
     * @param defaut the defaut to set
     */
    public void setDefaut(boolean defaut) {
        this.defaut = defaut;
    }

    /**
     *
     * @return String
     */
    @Override
    public String toString() {
        //return "Adresse{" + "idBase=" + idBase + ", idAppli=" + idAppli + ", numVoie=" + numVoie + ", nomVoie=" + nomVoie + ", complement=" + complement + ", codePostal=" + codePostal + ", ville=" + ville + ", pays=" + pays + ", mail=" + mail + ", tel=" + tel + ", defaut=" + defaut + '}';
        return numVoie;
    }
    
    public String toJSONString(){
        return "{\"idBase\":\""+ idBase +"\",\"idAppli\":\""+ idAppli +"\",\"numVoie\":\""+ numVoie +"\",\"nomVoie\":\""+ nomVoie +"\",\"complement\":\""+ complement +"\",\"codePostal\":\""+ codePostal +"\",\"ville\":\""+ ville +"\",\"pays\":\""+ pays +"\",\"mail\":\""+ mail +"\",\"tel\":\""+ tel +"\",\"defaut\":\""+ defaut +"\"}";
    }
}
